package com.gowants.pems.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.gowants.pems.model.SysPermission;

public interface SysPermissionMapper {
	
	/**
	 * 查询
	 * @param record
	 * @return
	 */
	public List<SysPermission> select(@Param("record")SysPermission record);
	
	
	
	public List<SysPermission> selectPower(@Param("record")SysPermission record);
	/**
	 * 根据id查询
	 * @param id
	 * @return
	 */
	public SysPermission selectOne(@Param("id")String id);
	
	/**
	 * 递归查询所有子集
	 * @param id
	 * @return
	 */
	public List<SysPermission> selectChildren(@Param("id")String id);
	
	/**
	 * 递归查询所有子集
	 * @param id
	 * @return
	 */
	public List<SysPermission> selectALLChildren(@Param("record")SysPermission record);
	
	/**
	 * 新增
	 * @param record
	 * @return
	 */
	public int save(@Param("record")SysPermission record);
	
	/**
	 * 修改
	 * @param record
	 * @return
	 */
	public int update(@Param("record")SysPermission record);
	
	/**
	 * 删除
	 * @param id
	 * @return
	 */
	public int delete(@Param("id")String id);
	

}
